<?php
namespace app\common\model;

use think\Db;
use think\Model;

class ArticleComment extends Model
{

    protected $auto = ['ip'];
    protected $autoWriteTimestamp = true;

    protected function setIpAttr()
    {
        return request()->ip();
    }
}